<template>
  <a-card :bordered="false" class="addOrder">
    <el-page-header @back="$router.go(-1)" style="margin-bottom:10px"></el-page-header>
    <el-form
      :model="ruleForm"
      :rules="rules"
      ref="ruleForm"
      :labelWidth="labelWidth"
      class="demo-ruleForm"
    >
      <!-- 已完成 -->
      <com-title :styleIng="{margin:'10px 0px 10px 10px;'}" :isShow="false">
        <span slot="title">{{this.$route.query.status | status}}</span>
        <el-row :gutter="10" slot="table">
          <el-col :md="8">
            <el-form-item>
              <h3 slot="label">配送单号：</h3>
              <h3>{{info.distributionInfoDetailDtoList.distributionInfoId}}</h3>
            </el-form-item>
          </el-col>
          <el-col :md="8">
            <el-form-item>
              <h3 slot="label">创单人：</h3>
              <h3>{{info.distributionInfoDetailDtoList.operatorId}}</h3>
            </el-form-item>
          </el-col>
          <el-col :md="8">
            <el-form-item>
              <h3 slot="label">制单时间：</h3>
              <h3>{{info.distributionInfoDetailDtoList.createTime}}</h3>
            </el-form-item>
          </el-col>
        </el-row>
      </com-title>

      <!-- 配送信息 -->
      <com-title :styleIng="{margin:'10px 0px 10px 10px'}" :isShow="false">
        <span slot="title">配送信息</span>
        <el-row :gutter="10" slot="table">
          <el-col :md="24">
            <el-form-item>
              <h3 slot="label">预计送达日期：</h3>
              <h3>{{info.distributionInfoDetailDtoList.serviceDate}}</h3>
            </el-form-item>
          </el-col>
          <el-col :md="12">
            <el-form-item>
              <h3 slot="label">备注：</h3>
              <h3>{{info.distributionInfoDetailDtoList.remarks}}</h3>
            </el-form-item>
          </el-col>
          <el-col :md="12">
            <el-form-item>
              <h3 slot="label">配送地址：</h3>
              <h3>{{info.distributionInfoDetailDtoList.companyAdress}}</h3>
            </el-form-item>
          </el-col>
          <el-col :md="12">
            <el-form-item>
              <h3 slot="label">配送时间：</h3>
              <h3>{{info.distributionInfoDetailDtoList.distributionTime}}</h3>
            </el-form-item>
          </el-col>
        </el-row>
      </com-title>

      <!-- 商品信息 -->
      <com-title :styleIng="{margin:'10px 0px 10px 10px'}" :isShow="false">
        <span slot="title">
          <span>商品信息</span>
        </span>
        <buyingIfor slot="table" ref="buyingIfor" style="margin:10px 0px 10px 10px" />
      </com-title>
      <div class="content">
        <!-- <a-button type="primary" @click="submitSave('ruleForm')">确认退货</a-button> -->
        <a-button @click="quxiao('ruleForm')">返回</a-button>
      </div>
    </el-form>
    <choiceShop ref="choiceShop" @trigger="trigger" />
  </a-card>
</template>

<script src='./index.js'></script>

<style lang="less">
.addOrder {
  .content {
    text-align: center;
    margin: 20px 0px;
    button {
      margin-right: 10px;
    }
  }
}
.upload_list {
  & > div {
    float: left;
    margin-right: 10px;
    & > .imgs {
      width: 150px;
      height: 130px;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
    & > div {
      width: 150px;
      margin-bottom: 0;
      text-align: center;
      background-color: #fafafa;
      display: flex;
      justify-content: center;

      span {
        padding-right: 10px;
        cursor: pointer;
      }
    }
  }
  .avatar-uploader {
    float: left;
  }
}
</style>
